<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@ include file="/WEB-INF/views/include/constrant.jsp"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>我的需求</title>
<link rel="stylesheet" href="${ctxStatic }/gov/css/govcustom.css" />
<link rel="stylesheet" href="${ctxStatic }/gov/css/gov_total.css" />
<link rel="stylesheet" href="${ctxStatic }/gov/My97DatePicker/govsk/skin/WdatePicker.css" />
<script src="${ctxStatic }/jquery/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="${ctxStatic }/gov/js/gov.js"></script>
<script type="text/javascript" src="${ctxStatic }/gov/js/jquery.validate.js" ></script>
<script type="text/javascript" src="${ctxStatic }/gov/js/messages_zh.js" ></script>

<link href="${ctxStatic }/xiake/css/list.css" rel='stylesheet' type='text/css' />
<script>

function page(n,s){
	$("#pageNo").val(n);
	$("#pageSize").val(s);
	$("#searchForm").submit();
	return false;
}
	</script>
</head>
<body>
		<%@include file="../index/head.jsp" %>
		<div id="custom_h">
			<div class="custom_main">
				<div class="custom_abside">
					<div class="coutom_col">
						<a href="${ctxGov }/customRent" class="cou-col-b">定制包车 </a>
					</div>
					<div class="coutom_col" style="margin-top: 20px;">
						<a href="${ctxGov }/myCustomRent">我的需求</a>
					</div>
				</div>
				<div class="custom-body">
					<div class="cutom-order col-wl-a" style="height:700px;position: relative;">
					<form:form id="searchForm" modelAttribute="DistributionInfo" action="${ctxGov}/myCustomRent" method="post" >
					<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
					<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
					<sys:tableSort id="orderBy" name="orderBy" value="${page.orderBy}" callback="page();"/>
					<div class="cou-or-top clearfix">
								<div class="cor-or-time">
									<label>
			  	      	  		  	  	  <span>起始日期：</span>
			  	      	  		  	  	  <input type="text" name="createDateQueryStart" class="Wdate" onclick="WdatePicker({})"/>
			  	      	  		  	  	  —
			  	      	  		  	  	  <input type="text" name="createDateQueryEnd"  class="Wdate" onclick="WdatePicker({position:{left:-130,top:0}})" />
			  	      	  		  	  </label>
								</div>
								<div class="cor-or-state">
									<label>
			  	      	  		  	      	<label>反馈状态：</label>
									<select name ="reactstatus">
										 <option value="" >--请选择--</option>
										 <option value="1">待响应</option>
										 <option value="2">已响应</option>
										 <option value="3">已支付</option>
										 <option value="4">已取消</option>
									</select>
									</label>
								</div>
								<input id="btnSubmit" class="cou-true" type="submit" value="查询"/>
							</div>
					</form:form>
	
						<table class="cou_table" cellpadding="0" cellspacing="0">
							<tr class="cou_table_tit">
								<th class="cou-table-lo">发布时间</th>
								<th class="cou-table-lo">车型</th>
								<th>包车数量</th>
								<th class="cou-table-lo">用车时间</th>
								<th>包车天数</th>
								<th>出发地</th>
								<th>目的地</th>
								<th>反馈状态</th>
								<th class="cou-table-lo">操作</th>
							</tr>
							<c:forEach items="${page.list}" var="info">
							<tr class="cou-ta-ifm">
								<td><fmt:formatDate value="${info.createDate}" pattern="yyyy-MM-dd HH:mm" /></td>
								<td>${info.cartype.typename}</td>
								<td>${info.vehiclenum}辆</td>
								<td><fmt:formatDate value="${info.fromdate}" pattern="yyyy-MM-dd HH:mm"/></td>
								<td>${info.rentdays}天</td>
								<td>${info.departcity.cityname}</td>
								<td>${info.destcity.cityname}</td>
								<c:if test="${info.reactstatus == '1'}">
								<td>待响应</td>
								</c:if>
								<c:if test="${info.reactstatus == '2'}">
								<td>已响应(${info.rectcount})</td>
								</c:if>
								<c:if test="${info.reactstatus == '3'}">
								<td>已支付</td>
								</c:if>
								<c:if test="${info.reactstatus == '4'}">
								<td>已取消</td>
								</c:if>
								<td class="cou-cheek-o">
									<span ><a  href="${ctxGov}/checkCustomRent?demandid=${info.demandid}">查看</a></span>
									<c:if test="${info.reactstatus == '1' or info.reactstatus == '2'}">
									<span ><a  href="${ctxGov}/cancelCustomRent?demandid=${info.demandid}">取消</a></span>
									</c:if>
								</td>
							</tr>
							</c:forEach>
							
						</table>
						<div class="gov_page" style="position: absolute;bottom: 0;">
							<div class="pagination  font_normal_size" >${page.html}</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<%@include file="../index/foot.jsp" %>
	</body>
 </html>